package nl.saxion.act.playground;

public class Player {

	private String color;
	
	private int score;
	private boolean hasTurn;
	
	public Player(String color) {
		this.color = color;
	}
	
	public boolean hasTurn() {
		return hasTurn;
	}
	
	public void changeTurn() {
		if(hasTurn) {
			hasTurn = false;
		} else  if (!hasTurn) {
			hasTurn = true;
		}
	}
	
	
	public void setTurn(Boolean turn) {
		hasTurn = turn;
	}
	
	public void setScore(int score) {
		this.score = score;
	}
	
	public int getScore() {
		return score;
	}
	
	public String toString() {
		return color;
	}
	
	
}
